package ocean.chinacraft.common.world;

import net.minecraftforge.event.world.BiomeLoadingEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import ocean.chinacraft.common.constants.Constants;
import ocean.chinacraft.common.world.gen.ModFlowersGeneration;
import ocean.chinacraft.common.world.gen.ModOreGeneration;
import ocean.chinacraft.common.world.gen.ModPlantsGeneration;
import ocean.chinacraft.common.world.gen.ModTreeGeneration;

/**
 * 世界首次加载
 *
 * @author zhang
 * @since 2021/11/10
 */
@Mod.EventBusSubscriber(modid = Constants.MOD_ID)
public class BiomeLoadEvent {

    @SubscribeEvent
    public static void onBiomeLoading(final BiomeLoadingEvent event) {
        ModOreGeneration.generateOres(event);
        ModFlowersGeneration.generateTrees(event);
        ModTreeGeneration.generateTrees(event);
        ModPlantsGeneration.generatePlant(event);
    }
}